﻿using System;

namespace NoteHelper.BaseControl
{
    public class LinkClickDelete : SourceGrid.Cells.Controllers.ControllerBase
    {
        public override void OnClick(SourceGrid.CellContext sender, EventArgs e)
        {
            base.OnClick(sender, e);

            SourceGrid.DataGrid grid = (SourceGrid.DataGrid)sender.Grid;
            grid.DeleteSelectedRows();
        }
    }
}
